import React, { Component } from 'react'
import {NavLink} from "react-router-dom"
export default class MyNav extends Component {
    render() {
        // 组件的文本内容也在组件的props上面，this.props.children上
        console.log(this.props);
        return (
            <NavLink activeClassName="activeComp"
            className="list-group-item" {...this.props} />
        )
    }
}
